package com.ruoyi.web.wuliu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子对象 t_post
 * 
 * @author ruoyi
 * @date 2023-12-05
 */
@ApiModel("帖子对象")
public class TPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 插图 */
    @Excel(name = "插图")
    private String insetUrl;

    /** 1审核中2审核通过3审核不通过 */
    @Excel(name = "1审核中2审核通过3审核不通过")
    private Integer status;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer browseCount;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Integer giveLike;

    @TableField(exist = false)
    private AppUser appUser;

    @Excel(name = "是否点赞1是2否")
    @TableField(exist = false)
    private int give;

    @TableField(exist = false)
    private int reviewCount;
    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setInsetUrl(String insetUrl) 
    {
        this.insetUrl = insetUrl;
    }

    public String getInsetUrl() 
    {
        return insetUrl;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setBrowseCount(Integer browseCount) 
    {
        this.browseCount = browseCount;
    }

    public Integer getBrowseCount() 
    {
        return browseCount;
    }
    public void setGiveLike(Integer giveLike) 
    {
        this.giveLike = giveLike;
    }

    public Integer getGiveLike() 
    {
        return giveLike;
    }

    public int getReviewCount() {
        return reviewCount;
    }

    public void setReviewCount(int reviewCount) {
        this.reviewCount = reviewCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("insetUrl", getInsetUrl())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("browseCount", getBrowseCount())
            .append("giveLike", getGiveLike())
            .toString();
    }

    public AppUser getAppUser() {
        return appUser;
    }

    public void setAppUser(AppUser appUser) {
        this.appUser = appUser;
    }

    public int getGive() {
        return give;
    }

    public void setGive(int give) {
        this.give = give;
    }
}
